export default {
  namespaced: true,
  state: {
    route: [],
    obj: {},
  },
  mutations: {
    addRoute(state, add) {
      state.route = add;
    },
    //! 添加一个路由
    addOneRoute(state, obj) {
      state.route.push(obj);
      //! 存当前的路由文件
      state.obj = obj; 
    },
  },
};
